home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.1 (Developer) [x86] / NeXT Step 3.1 Intel dev.cdr.dmg / NextDeveloper / Examples / AppKit / Draw / textUndo.subproj / TextSelChange.h < prev    next >
Text File  |  1992-02-09  |  704b  |  33 lines

  1. /*
  2.  * This class is used to represent a change in the current selection
  3.  * (e.g., a font change). The contents and position of the selection are
  4.  * saved before and after the change.
  5.  */
  6.  
  7. @interface TextSelChange : TextChange
  8. {
  9.     int selStart;        /* selection start before change */
  10.     int selEnd;            /* selection end before change */
  11.     id oldSel;            /* selection data before change */
  12.     id newSel;            /* selection data after change */
  13.     const char *name;        /* name string */
  14. }
  15.  
  16. /* Initialization method */
  17.  
  18. - initView:aView name:(const char *)str;
  19.  
  20. /* Free method */
  21.  
  22. - free;
  23.  
  24. /* Public methods */
  25.  
  26. - (const char *)changeName;
  27. - saveBeforeChange;
  28. - saveAfterChange;
  29. - undoChange;
  30. - redoChange;
  31.  
  32. @end
  33.